import { http } from "../plugin/request";

export const findPopulate = (_id: string) =>
  http.setRequest("GET", `/api/user/findPopulate?_id=${_id}`);

export const addPopulate = (_id: string, body: { [key: string]: any }) =>
  http.setRequest("POST", `/api/user/savePopulate?_id=${_id}`, body);

// export const deletePopulate = (_id: string) =>
//   http.setRequest("DELETE", `/api/user/deletePopulate?_id=${_id}`);

// export const update = (_id: string, body: { [key: string]: any }) =>
//   http.setRequest("PATCH", `/api/user/update?_id=${_id}`, body);
